package edu.pku.sei.transformation.editor.views.figures;

import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.LineBorder;
import org.eclipse.draw2d.ToolbarLayout;

import edu.pku.sei.transformation.editor.views.icons.IconsProvider;

public class MetaModelFigure extends Figure {
	private Label head = new Label();

	public MetaModelFigure() {
		this.setBorder(new LineBorder());
		this.setLayoutManager(new ToolbarLayout());

		head.setIcon(IconsProvider.getImage(IconsProvider.MODEL_ICO));
		this.add(head);
	}

	public void setName(String name) {
		head.setText(name);
	}
}
